<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8"/>
    <title>Title</title>
    <link rel="stylesheet" th:href="@{/layui/layui.css}"/>
    <link rel="stylesheet" th:href="@{/css/main.css}"/>

    <script th:src="@{/layui/layui.all.js}"></script>
    <script type="text/javascript" th:src="@{/js/jquery-3.2.1.js}"></script>
</head>
<body>
<fieldset class="layui-elem-field layui-field-title" style="margin-top: 50px;">
    <legend><span class="" style="font-size: 14px">
        <a href="/dor/indexdemo">首页<span class="layui-box">&gt;</span></a>
  <span>人员管理<span class="layui-box">&gt;</span></span>
  <a href="/dor/teaSelect">宿管管理<span class="layui-box">&gt;</span></a>
  <span>添加一名宿管<span class="layui-box">&gt;</span></span>
</span>
    </legend>
</fieldset>
<div class="layui-row">
    <div class="layui-col-xs12 layui-col-md5">
        <form class="layui-form" method="post" action="/dor/tea">
            <div class="layui-form-item">
                <label class="layui-form-label">宿管编号</label>
                <div class="layui-input-block">
                    <input type="text" name="tea_id" autocomplete="off" placeholder="*必填项" class="layui-input" lay-verify="number" required="required"/>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">姓名</label>
                <div class="layui-input-block">
                    <input type="text" name="name"  autocomplete="off" placeholder="*必填项" required="required" lay-verify="required" class="layui-input"/>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">性别</label>
                <div class="layui-input-block">
                    <input type="text" name="sex"  autocomplete="off" placeholder="*必填项" required="required" lay-verify="required" class="layui-input"/>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">密码</label>
                <div class="layui-input-block">
                    <input type="text" name="password"  value="123" autocomplete="off" class="layui-input"/>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">手机号码</label>
                <div class="layui-input-block">
                    <input type="text" name="phone" autocomplete="off" class="layui-input"/>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">职位</label>
                <div class="layui-input-block">
                    <input type="text" name="job" autocomplete="off" class="layui-input"/>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">邮箱</label>
                <div class="layui-input-block">
                    <input type="text" name="email" autocomplete="off" class="layui-input"/>
                </div>
            </div>

            <div class="layui-form-item">
                <div class="layui-input-block">
                    <button class="layui-btn"  lay-filter="add_user">立即提交</button>
                    <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                </div>
            </div>
        </form>
    </div>
</div>
<script th:inline="javascript">
    var flag = [[${f}]];
    if (flag === 1){
        layer.open({
            content: '添加成功'
        });
    }

</script>

</body>
</html>